<?php
class Admin_Form_Constant extends Zend_Form{
	public function init(){
		$this->setAttrib('id', 'frmAdminForm');
		
		//mã 
		$id = $this->createElement('hidden', 'constant_id');
		
		$constant_name = $this->createElement('text', 'constant_name');
		$constant_name->setRequired(true)->setLabel('Tên Thông số');
		
		$constant_code = $this->createElement('text', 'constant_code');
		$constant_code->setRequired(true);
		$constant_code->setLabel('Mã định danh');
		
		$constant_note = $this->createElement('textarea', 'constant_note');
		$constant_note->setAttrib('class', 'big-textarea');
		$constant_note->setLabel('Ghi chú');
		
		$constant_content_vi = $this->createElement('textarea', 'constant_content_vi');
		$constant_content_vi->setLabel('Nội dung tiếng việt');
		
		$constant_content_en = $this->createElement('textarea', 'constant_content_en');
		$constant_content_en->setLabel('Nội dung tiếng anh');
		
		$this->addElements(array(
				$constant_name,
				$constant_code,
				$constant_note,
				$constant_content_vi,
				$constant_content_en
		));
		
		$this->addDisplayGroup(array(
				$constant_name,
				$constant_code,
				$constant_note,
				$constant_content_vi,
				$constant_content_en
		), 'basic-info',array('legend'=>'Thông tin cơ bản','class'=>'display-group'));
		
	}
}